﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="QuanLyUser.aspx.cs" Inherits="WebsiteBanHang.QuanLyUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content1" runat="server">
    <table style="width: 100%;">
        <tr>
            <td colspan="2" align="left" style="width: 100%;">
                <h3>
                    QUẢN LÝ NGƯỜI DÙNG</h3>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left" style="border: 1px solid #DEDEDE">
                <div style="border-bottom: 1px solid #DEDEDE; height: 2px">
                </div>
                Phân quyền:
                <asp:DropDownList ID="cbb_PhanQuyen" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cbb_PhanQuyen_SelectedIndexChanged">
                    <asp:ListItem>Thành Viên</asp:ListItem>
                    <asp:ListItem>Admin</asp:ListItem>
                </asp:DropDownList>
                <div style="border-bottom: 1px solid blue; height: 2px">
                </div>
                <asp:Panel ID="pnl_DanhSach" runat="server" Width="100%">
                    <asp:GridView ID="grid_DanhSach" runat="server" AutoGenerateColumns="False" CellPadding="3"
                        Height="113px" Width="760px" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None"
                        BorderWidth="1px" AllowPaging="True" PageSize="5" OnRowDataBound="grid_DanhSach_RowDataBound">
                        <FooterStyle BackColor="White" ForeColor="#000066" />
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="cbRows" runat="server"/>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="STT">
                                <ItemTemplate>
                                    <%# Container.DataItemIndex + 1 %>
                                </ItemTemplate>
                                <HeaderTemplate>
                                    STT<br />
                                </HeaderTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Taikhoan" HeaderText="Tài Khoản" />
                            <asp:BoundField DataField="Matkhau" HeaderText="Mật Khẩu" />
                            <asp:BoundField DataField="Maquyen" HeaderText="Mã Quyền" />
                            <asp:BoundField DataField="Hoten" HeaderText="Họ Tên" />
                            <asp:BoundField DataField="Diachi" HeaderText="Địa Chỉ" />
                            <asp:BoundField DataField="Email" HeaderText="Email" />
                            <asp:BoundField DataField="Sodienthoai" HeaderText="Số Điện Thoại" />
                            <asp:BoundField DataField="Ghichu" HeaderText="Ghi Chú" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click">Xóa</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbt_Sua" runat="server" OnClick="lbt_Sua_Click">Sửa</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle ForeColor="#000066" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    </asp:GridView>
                </asp:Panel>
                <tr>
                    <td align="center">
                        <asp:Button ID="btn_Xem" runat="server" Text="Xem danh sách người dùng" OnClick="btn_Xem_Click"></asp:Button>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lb_Thongbao" runat="server" Text="Label" Visible="false"></asp:Label>
                    </td>
                </tr>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>
